package com.gitee.jmash.websocket.model;

/**
 * 订阅WebSocket消息
 * 
 * @author cgd
 * @date 2025/07/15
 */
public class Message {

  /** 消息类型. */
  protected MsgType msgType;

  /** 通道ID. */
  protected String channelId;

  /** 信息. */
  protected String message;

  public MsgType getMsgType() {
    return msgType;
  }

  public void setMsgType(MsgType msgType) {
    this.msgType = msgType;
  }

  public String getChannelId() {
    return channelId;
  }

  public void setChannelId(String channelId) {
    this.channelId = channelId;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  @Override
  public String toString() {
    return "Message [msgType=" + msgType + ", channelId=" + channelId + ", message=" + message
        + "]";
  }


}
